extends Node


## 伤害被格挡
@warning_ignore("unused_signal")
signal damage_block(hurt_uint: Unit, hitbox: HitboxComponent)

## 受到伤害
@warning_ignore("unused_signal")
signal damage_hurt(hurt_uint: Unit, hitbox: HitboxComponent)






func create_floating_text(pos: Vector2) -> FloatingText:
	var instance := Globals.PREFAB_FLOATING_TEXT.instantiate() as FloatingText
	if instance:
		instance.global_position = Sundry.random_position_surround(pos, 35.0)
	return instance